package chapter01;

public class Circle {
    public static void main(String[] args) {
        double c1 = 2;
        double c2 = 5;
        double c3 = 10;

        double s1 = computedArea(c1);
        double s2 = computedArea(c2);
        double s3 = computedArea(c3);

        System.out.println("s1: " + s1);
        System.out.println("s2: " + s2);
        System.out.println("s3: " + s3);
    }

    public static double computedArea(double r) {
        double PI = 3.14;
        return PI * r * r;
    }
}
